找传奇、传世资源到传世资源站!

Guva教程.docx

8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

Guva教程
from clipboard
Guava教程目录Guava 是什么?10Guava的好处11Guava本地环境设置13Windows 2000/XP设置的路径:14Windows95/98/ME设置路径:14Linux,UNIX,Solaris和FreeBSD设置路径:14流行的Java编辑器:14下载Guava存档14设置Guava环境15设置CLASSPATH变量15类声明16类方法16继承的方法17Optional示例:17验证结果19C:\Guava>javac GuavaTester.java19C:\Guava>java GuavaTester19First parameter is present: false19Second parameter is present: true19类声明19类方法19继承的方法20Preconditions 示例21a = Preconditions.checkNotNull(a,22b = Preconditions.checkNotNull(b,22验证结果22C:\Guava>javac GuavaTester.java22C:\Guava>java GuavaTester22类声明23类方法23方法继承26Ordering 示例26验证结果28C:\Guava>javac GuavaTester.java28C:\Guava>java GuavaTester28类声明29类方法29方法继承30Objects 示例30验证结果33C:\Guava>javac GuavaTester.java33C:\Guava>java GuavaTester33类声明33方法33方法继承36Range 例子36验证结果39C:\Guava>javac GuavaTester.java39C:\Guava>java GuavaTester395 is present: true39类声明40类方法40继承的方法41Throwables示例41验证结果43C:\Guava>javac GuavaTester.java43C:\Guava>java GuavaTester43接口声明44接口方法44方法继承46Multiset 示例46验证结果48C:\Guava>javac GuavaTester.java48C:\Guava>java GuavaTester48接口声明49接口方法49继承的方法50BiMap 示例50验证结果50C:\Guava>javac GuavaTester.java51C:\Guava>java GuavaTester51接口声明51接口方法51Table 例子53验证结果55C:\Guava>javac GuavaTester.java55C:\Guava>java GuavaTester55接口声明55接口方法56LoadingCache 示例56e.printStackTrace();58验证结果60C:\Guava>javac GuavaTester.java60C:\Guava>java GuavaTester60类声明61类方法61继承的方法62Joiner 示例63验证输出结果63C:\Guava>javac GuavaTester.java63C:\Guava>java GuavaTester631,2,3,4,5,663类声明64类方法64继承的方法65Splitter 例子65验证输出66C:\Guava>javac GuavaTester.java66C:\Guava>java GuavaTester66类声明66字体67构造函数68类方法68继承的方法71CharMatcher 例子71验证结果72C:\Guava>javac GuavaTester.java72C:\Guava>java GuavaTester72类声明72枚举常量72方法73继承的方法73CaseFormat 示例73验证结果74C:\Guava>javac GuavaTester.java74C:\Guava>java GuavaTester74类声明75方法:76继承的方法76Bytes 示例77验证结果78C:\Guava>javac GuavaTester.java78C:\Guava>java GuavaTester785 is in list? true78类声明78字段79方法79继承的方法81Shorts 示例81验证结果82C:\Guava>javac GuavaTester.java82C:\Guava>java GuavaTester825 is in list? true829 9683类声明83字段83方法83继承的方法85Ints 示例85验证结果87C:\Guava>javac GuavaTester.java87C:\Guava>java GuavaTester875 is in list? true87类声明87字段88方法88继承的方法90Longs 示例90验证结果91C:\Guava>javac GuavaTester.java91C:\Guava>java GuavaTester915 is in list? true91类声明92字体92方法92继承的方法94Floats 示例94验证结果95C:\Guava>javac GuavaTester.java95C:\Guava>java GuavaTester955.0 is in list? true955.0 position in list 495类声明96字段96方法96方法继承98Doubles 示例98验证结果99C:\Guava>javac GuavaTester.java99C:\Guava>java GuavaTester995.0 is in list? true995.0 position in list 499类声明100字段100方法100方法继承102Chars 例子102验证结果103C:\Guava>javac GuavaTester.java103C:\Guava>java GuavaTester103类声明104方法104方法继承105Booleans 示例105验证结果107C:\Guava>javac GuavaTester.java107C:\Guava>java GuavaTester107类声明108方法108方法继承109IntMath 例子109验证结果111C:\Guava>javac GuavaTester.java111C:\Guava>java GuavaTester111类声明111方法112方法继承113LongMath 示例113验证结果115C:\Guava>javac GuavaTester.java115C:\Guava>java GuavaTester115类声明115方法116继承的方法116BigIntegerMath 示例116验证结果118C:\Guava>javac GuavaTester.java118C:\Guava>java GuavaTester118接口声明118接口方法118Multimap 示例120验证结果122C:\Guava>javac GuavaTester.java122C:\Guava>java GuavaTester122

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复